package cn.hejx.service.impl;

import cn.hejx.remoteapi.IMessage;
import cn.hejx.remoteapi.vo.Person;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * Created by 追风少年
 *
 * @email doubihah@foxmail.com
 * @create 2017-06-30 16:07
 **/
@Component
public class MessageImpl implements IMessage{

    @Override
    public String echo(String msg) {
        return "MASTER - ECHO:" + msg;
    }

    @Override
    public Person getPerson(String name) {
        return new Person(name,11,new Date());
    }
}
